package guoanmaker.operator.business.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import guoanmaker.operator.helper.common.abstractobj.IdEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "t_operator_active_task")
public class OperatorActiveTask extends IdEntity{

	private String activeTaskName;
	@ManyToOne
	@JoinColumn(name = "active_task_type_id")
	private OperatorActiveTaskType activeTaskType;
	@ManyToOne
	@JoinColumn(name = "active_id")
	private OperatorEventDetails active;
	private String activeTaskAmount;
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "datetime")
	private Date dateTime;
	
}
